﻿package
{
	import flash.events.Event;
    
    public class PluginEvent extends Event 
    {
        public static const NULL:String = "null";
		
		public var args:Object;
        
        public function PluginEvent( type:String = NULL, args:Object = null )
        {
            super( type );
			this.args = args;
        }

		public override function clone():Event
		{
			return new PluginEvent( type, args );
		}
		
		public override function toString():String
		{
			var str:String = formatToString( "PluginEvent", "type", "bubbles", "cancelable", "eventPhase" );
			str += "\n";
			for( var i in args ) {
				str += i + "=" + args[i] + " ";
			}
			return str;
		}		
    }
}
